import request from '@/utils/request'

// 查询预警明细列表
export function listPcwRiskDetails(query) {
  return request({
    url: '/pcw/pcwRiskDetails/list',
    method: 'get',
    params: query
  })
}

// 查询预警明细列表 风控管理 项目概览
export function listDealRiskDetails(query) {
  return request({
    url: '/pcw/pcwRiskDetails/listDealRiskDetails',
    method: 'get',
    params: query
  })
}

// 查询预警明细详细
export function getPcwRiskDetails(id) {
  return request({
    url: '/pcw/pcwRiskDetails/' + id,
    method: 'get'
  })
}

// 保存预警明细
export function savePcwRiskDetails(data) {
  return request({
    url: '/pcw/pcwRiskDetails/save',
    method: 'post',
    data: data
  })
}

// 删除预警明细
export function delPcwRiskDetails(id) {
  return request({
    url: '/pcw/pcwRiskDetails/' + id,
    method: 'delete'
  })
}

// 导出预警明细
export function exportPcwRiskDetails(query) {
  return request({
    url: '/pcw/pcwRiskDetails/export',
    method: 'get',
    params: query
  })
}
